package com.jsb.dao.mapper;

import com.jsb.dao.model.User;
import org.apache.ibatis.annotations.*;

/**
 * Created by jince on 2017/1/24.
 */
@Mapper
public interface UserMapper {

    @Select("SELECT * FROM user WHERE id = #{id}")
    @Results(value= { @Result(id = true, column = "id", property = "id"),
                      @Result(column = "mobile", property = "mobile")})
    public User getUser(@Param("id") int id);
}
